/*
 * Group 3, User Interface Programming II (vt11)
 * Pooya | Flora | Monica | Can
 */
package vical.undo;

import vical.controller.EntryController;
import vical.model.Entry;

/**
 * The event stand for a adding-task action
 * 
 * @author Can
 */
public class UndoableEntryAddEvent extends UndoableEntryEvent {

    public UndoableEntryAddEvent(Entry newEntry) {
        super(null, newEntry);
    }
    
    @Override
    public void reexecute() {
        EntryController.addEntry(newEntry, false);
    }

    @Override
    public void unexecute() {
        EntryController.deleteEntry(newEntry, false);
    }
    
}
